package cn.xd.itstack.springframework.context.support;

import cn.xd.itstack.springframework.beans.BeansException;

import java.util.Map;

/**
 * @Classname ClassPathXmlApplicationContext
 * @Description TODO
 * @Date 2022/5/18 上午10:59
 * @Created by lvxiaodong
 */
public class ClassPathXmlApplicationContext extends AbstractXmlApplicationContext {

    private String[] configLocations;


    public ClassPathXmlApplicationContext() {
    }


    public ClassPathXmlApplicationContext(String configLocations){
        this(new String[]{configLocations});
        refresh();
    }

    public ClassPathXmlApplicationContext(String [] configLocations){
        this.configLocations = configLocations;
    }


    @Override
    protected String[] getConfigLocations() {
        return configLocations;
    }

}
